-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat(nifi): Add NiFi OPA Authorizer #1058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -127,7 +151,7 @@ ln -s /stackable/nifi-${PRODUCT} /stackable/nifi | |||
chown --no-dereference ${STACKABLE_USER_UID}:0 /stackable/nifi | |||
chmod --recursive g=u /stackable/python | |||
chmod --recursive g=u /stackable/bin | |||
chmod g=u /stackable/nifi-${PRODUCT} | |||
chmod --recursive g=u /stackable/nifi-${PRODUCT} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This recursive chmod will bloat the image. If you only want the extensions/opa-authorizer.nar
chmodded please do that in the builder step.
REPOSITORY TAG IMAGE ID CREATED SIZE
oci.stackable.tech/sdp/nifi 1.28.1-stackable0.0.0-dev-opa 4647bd8fb197 7 seconds ago 5.65GB
oci.stackable.tech/sdp/nifi 1.28.1-stackable0.0.0-dev 2d7de1b048a7 38 hours ago 3.12GB
# TODO: Set to tag after new release of nifi-opa-plugin | ||
RUN git clone --depth 1 https://github.com/DavidGitter/nifi-opa-plugin.git && \ | ||
cd nifi-opa-plugin && \ | ||
git reset --hard cdf8c36 && \ | ||
git apply /stackable/nifi-framework-api-version.patch && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want profiles upstream for that.
FROM stackable/image/java-devel AS opa-authorizer-builder | ||
|
||
ARG STACKABLE_USER_UID | ||
ARG PRODUCT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PRODUCT is not used in this builder.
ARG PRODUCT |
Description
Builds Nifi OPA Plugin from source and makes it available to NiFi as NAR file.
Currently uses a specific commit and contains a workaround patch until this PR is merged and released.
Definition of Done Checklist
Tasks
TIP: Running integration tests with a new product image
The image can be built and uploaded to the kind cluster with the following commands:
See the output of
bake
to retrieve the image tag for<image-tagged-with-the-major-version>
.